package com.ezops.dtcc.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.ezops.dtcc.model.AckNack;
import com.ezops.dtcc.model.DtccRules;

public class DtccRulesRowMapper implements RowMapper<Object> {
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		
		DtccRules dtccRule = new DtccRules();
		dtccRule.setRuleId(rs.getInt("RULE_ID"));
		dtccRule.setRuleName(rs.getString("RULE_NAME"));
		dtccRule.setRuleDesc(rs.getString("RULE_DESC"));
		dtccRule.setFileType(rs.getString("FILE_TYPE"));

		return dtccRule;
	}
}
